package net.mingsoft.dashboard.biz;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.mingsoft.dashboard.action.q.collection.CollectionCreateQuery;
import net.mingsoft.dashboard.action.q.collection.CollectionDeleteQuery;
import net.mingsoft.dashboard.action.q.collection.CollectionListQuery;
import net.mingsoft.dashboard.action.q.collection.CollectionModifyQuery;
import net.mingsoft.dashboard.action.r.CollectionDirResponse;
import net.mingsoft.dashboard.action.r.CreateOrModifyCollectionResponse;
import net.mingsoft.dashboard.entity.collection.FileCollectionEntity;

import java.util.List;

/**
 * @author gengfa
 * @date 22/02/10
 */
public interface MyCollectionBiz {

    /**
     * 创建收藏夹
     * @param query 收藏夹名称
     * @return 收藏夹ID
     */
    CreateOrModifyCollectionResponse createCollection(CollectionCreateQuery query);

    /**
     * 修改收藏夹名称
     * @param query 收藏夹ID和修改的名称
     * @return 修改结果
     */
    CreateOrModifyCollectionResponse modifyName(CollectionModifyQuery query);

    boolean deleted(CollectionDeleteQuery query);

    /**
     * 收藏夹目录
     * @return 目录列表
     */
    List<CollectionDirResponse> dir();

    /**
     * 收藏夹列表
     * @param query 过滤参数
     * @return 列表
     */
    Page list(CollectionListQuery query);
}
